package com.xiaochong.tir.trades.mqrevTrades;

import com.xiaochong.tir.trades.component.KActionSaveHbaseCommon;
import com.xiaochong.tir.trades.rabbit.BittrexMqQueue;
import com.xiaochong.tir.trades.rabbit.ExchangePairAllMqQueue;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description: 处理分钟k线数据
 * @Author: org
 * @CreateDate: 2018/9/3 18:04
 */
@Component
public class ExchangePartRevKAction {

    @Autowired
    private KActionSaveHbaseCommon kActionSaveHbaseCommon;
    @RabbitListener(queues = ExchangePairAllMqQueue.QUEUE_K_ACTION_EXCHANGE_All)
    @RabbitHandler
    public void processExchangePair(String body) {
        kActionSaveHbaseCommon.MqDataSaveTradesAction(body);
    }


   /* @RabbitListener(queues = ExchangePairAllMqQueue.QUEUE_K_ACTION_EXCHANGE_All_DEV)
    @RabbitHandler
    public void processExchangePairDev(String body) {
        kActionSaveHbaseCommon.MqDataSaveTradesAction(body);
    }*/
}
